package com.zygh.policeasset.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zygh.policeasset.mapper.AssetsStepsProcessMapper;
import com.zygh.policeasset.pojo.AssetsStepsProcess;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/service/AssetsStepsProcessService.class */
public class AssetsStepsProcessService {
    @Autowired
    AssetsStepsProcessMapper assetsStepsProcessMapper;

    public PageInfo queryByAssetsId(int pageNum, int pageSize, Integer assetsStepsId, String type) {
        PageHelper.startPage(pageNum, pageSize);
        return new PageInfo(this.assetsStepsProcessMapper.queryByAssetsId(assetsStepsId, type));
    }

    public int add(AssetsStepsProcess assetsStepsProcess) {
        return this.assetsStepsProcessMapper.add(assetsStepsProcess);
    }
}